/*
7-12
输入x
判断 x == 0
    是：result = 0;
    否：result = 1 / x;
输出 f(x) = result
*/
#include <stdio.h>

int main() {
    float x, y;
    scanf("%f", &x);
    if (x == 0) {
        y = 0;
    } else {
        y = 1/x;
    }
    printf("f(%.1f) = %.1f\n", x, y);
    return 0;
}